package com.itcast.bulls.stock.entity.user;

import com.itcast.bulls.stock.entity.base.BaseEntity;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Data
@Entity
@Table(name = "t_trade_account")
public class TradeAccount extends BaseEntity {
    /**
     * 主键标识
     */
    private Long id;

    /**
     * 用户表ID
     */
    private Long userId;

    /**
     * 交易账号
     */
    private String accountNo;

    /**
     * 余额
     */
    private Long balance;

    /**
     * 账户组ID
     */
    private Long tradeGroupId;

    /**
     * 开户时间
     */
    private Date activeTime;

    /**
     * 状态(0:有效，1:锁定，2:禁用)
     */
    private int status;

    /**
     * 公司ID
     */
    private Long companyId;

    /**
     * 用户名称
     */
    private String userName;

    /**
     * 对应机构类型下的机构ID
     */
    private Long institutionId;

    /**
     * 机构类型id
     */
    private String institutionTypeId;

    /**
     * 账户组名称
     */
    private String tradeGroupName;

    /**
     *
     * @mbg.generated Tue May 30 22:20:33 CST 2023
     */
    private static final long serialVersionUID = 1L;
}
